package com.zhonglz.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/***
 * 证书信息实体
 * @author xiaozhong
 *
 */
public class BuCertInfo {
    private String certId;//标识

    private String certUrl;//证书地址(关联文件表uid)

    private Integer certNum;//证书位数（暂无用）
    
    private String certPwd;//证书密码

    private String certC;//C项 国家

    private String certSt;//ST项 省份

    private String certL;//L项 城市

    private String certO;//O项 公用信息/O 单位统一社会信用代码、个人身份证

    private String certCn;//CN项 公用名/CN

    private String certOu;//OU项 部门/二级机构

    private String certType;//证书类型:rsa sm2

    private Integer certValidTime;//证书有效期(单位/天)

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date certNotBefore;//证书生成时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date certNotAfter;//证书失效时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间

    private byte[] certPublicKey;//公钥
    
    

    public String getCertPwd() {
		return certPwd;
	}

	public void setCertPwd(String certPwd) {
		this.certPwd = certPwd;
	}

	public String getCertId() {
        return certId;
    }

    public void setCertId(String certId) {
        this.certId = certId == null ? null : certId.trim();
    }

    public String getCertUrl() {
        return certUrl;
    }

    public void setCertUrl(String certUrl) {
        this.certUrl = certUrl == null ? null : certUrl.trim();
    }

    public Integer getCertNum() {
        return certNum;
    }

    public void setCertNum(Integer certNum) {
        this.certNum = certNum;
    }

    public String getCertC() {
        return certC;
    }

    public void setCertC(String certC) {
        this.certC = certC == null ? null : certC.trim();
    }

    public String getCertSt() {
        return certSt;
    }

    public void setCertSt(String certSt) {
        this.certSt = certSt == null ? null : certSt.trim();
    }

    public String getCertL() {
        return certL;
    }

    public void setCertL(String certL) {
        this.certL = certL == null ? null : certL.trim();
    }

    public String getCertO() {
        return certO;
    }

    public void setCertO(String certO) {
        this.certO = certO == null ? null : certO.trim();
    }

    public String getCertCn() {
        return certCn;
    }

    public void setCertCn(String certCn) {
        this.certCn = certCn == null ? null : certCn.trim();
    }

    public String getCertOu() {
        return certOu;
    }

    public void setCertOu(String certOu) {
        this.certOu = certOu == null ? null : certOu.trim();
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType == null ? null : certType.trim();
    }

    public Integer getCertValidTime() {
        return certValidTime;
    }

    public void setCertValidTime(Integer certValidTime) {
        this.certValidTime = certValidTime;
    }

    public Date getCertNotBefore() {
        return certNotBefore;
    }

    public void setCertNotBefore(Date certNotBefore) {
        this.certNotBefore = certNotBefore;
    }

    public Date getCertNotAfter() {
        return certNotAfter;
    }

    public void setCertNotAfter(Date certNotAfter) {
        this.certNotAfter = certNotAfter;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public byte[] getCertPublicKey() {
        return certPublicKey;
    }

    public void setCertPublicKey(byte[] certPublicKey) {
        this.certPublicKey = certPublicKey;
    }
}